/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package common;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import java.util.LinkedList;
import java.util.List;

/**
 *
 * @author Jhonny
 */
@XStreamAlias("ofad")
public class OFAD {

    @XStreamAlias("nroOfad")
    private long nroOfad;
    @XStreamAlias("idCasaCentral")
    private long idCasaCentral;
    @XStreamImplicit(itemFieldName="articulo")    
    List<Articulo> articulos;

    public OFAD() {
        articulos = new LinkedList<Articulo>();
    }

    public List<Articulo> getArticulos() {
        return articulos;
    }

    public void setArticulos(List<Articulo> articulos) {
        this.articulos = articulos;
    }
    public void addArticulo(Articulo articulo){
        articulos.add(articulo);
    }

    public long getIdCasaCentral() {
        return idCasaCentral;
    }

    public void setIdCasaCentral(long idCasaCentral) {
        this.idCasaCentral = idCasaCentral;
    }

    public long getNroOfad() {
        return nroOfad;
    }

    public void setNroOfad(long nroOfad) {
        this.nroOfad = nroOfad;
    }

    
}
